import request from "@/utils/request";

const BASEURL = "/api/user/wx";
//获取微信参数
export function getLoginParam() {
  return request({
    url: `${BASEURL}/getLoginParam/`,
    method: "get",
  });
}

//生成微信支付二维码
export function createNative(orderNo) {
  return request({
    url: `/api/order/weixin/createNative/${orderNo}`,
    method: "get",
  });
}
//查询支付状态的接口
export function queryPayStatus(orderId) {
  return request({
    url: `/api/order/weixin/queryPayStatus/${orderId}`,
    method: "get",
  });
}